<template>
  <div>
    <button @click="to">跳转</button>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    to() {
      this.$router.push({
        path: '/mock',
        name: 'mock',
        params: {
          id: '1',
          name: '小明'
        },
        query: {
          password: '1213456',
          username: 'admin',
           name: '小明'
        }
      })
    }
  }
}
</script>

<style></style>
